/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.upc.galaxy.dao;

import java.sql.*;
import java.util.ArrayList;
import java.util.Collection;

//import com.coneccion.conecta;
import edu.upc.galaxy.entity.AlquilerEntity;
import edu.upc.galaxy.entity.CanchaEntity;
import java.util.List;
import org.springframework.stereotype.Repository;

/**
 *
 * @author Sonia
 */
@Repository
public interface AlquilerDao {
    public Collection<AlquilerEntity> mostrarAlquileres() throws Exception;
    public void registrarUnAlquiler(AlquilerEntity entidad) throws Exception;
    public void registrarAlquiler(AlquilerEntity entidad) throws Exception;
    public Collection<AlquilerEntity> existeAlquiler(String fecha , String hora , int idcancha ) throws Exception;
    
 }
    
    
    
 